/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link de.hsmannheim.pepa.patientenportal.apanwep.service.http.codesServiceSoap}.
 *
 * @author Cedric Nana
 * @see de.hsmannheim.pepa.patientenportal.apanwep.service.http.codesServiceSoap
 * @generated
 */
public class codesSoap implements Serializable {
	public static codesSoap toSoapModel(codes model) {
		codesSoap soapModel = new codesSoap();

		soapModel.setID(model.getID());
		soapModel.setType(model.getType());
		soapModel.setCodesystemname(model.getCodesystemname());

		return soapModel;
	}

	public static codesSoap[] toSoapModels(codes[] models) {
		codesSoap[] soapModels = new codesSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static codesSoap[][] toSoapModels(codes[][] models) {
		codesSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new codesSoap[models.length][models[0].length];
		}
		else {
			soapModels = new codesSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static codesSoap[] toSoapModels(List<codes> models) {
		List<codesSoap> soapModels = new ArrayList<codesSoap>(models.size());

		for (codes model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new codesSoap[soapModels.size()]);
	}

	public codesSoap() {
	}

	public long getPrimaryKey() {
		return _ID;
	}

	public void setPrimaryKey(long pk) {
		setID(pk);
	}

	public long getID() {
		return _ID;
	}

	public void setID(long ID) {
		_ID = ID;
	}

	public long getType() {
		return _type;
	}

	public void setType(long type) {
		_type = type;
	}

	public String getCodesystemname() {
		return _codesystemname;
	}

	public void setCodesystemname(String codesystemname) {
		_codesystemname = codesystemname;
	}

	private long _ID;
	private long _type;
	private String _codesystemname;
}